from amscms.ams import admin# for admin.site.register
from django.conf import settings
from django.conf.urls.defaults import patterns, include
from amscms.dict import admin# for admin.site.register
from amscms.payment import admin# for admin.site.register

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Core
    (r'^$', include('core.urls')),
    (r'^core/', include('core.urls')),
    (r'^openid/', include('socialauth.urls')),
    # Ads
    (r'^ads/', include('ams.urls')),
    (r'^my/', include('ams.urls')),
    # Feeds
    (r'^rss/', include('feeds.urls')),
    # Dict
    (r'^dict/', include('dict.urls')),
    # Payment
    (r'^pay/', include('payment.urls')),
    # Reports
    (r'^report/', include('reports.urls')),
    # TinyMCE
    (r'^tinymce/', include('tinymce.urls')),
    # CMS
    (r'^content/', include('cms.urls')),
    # Admin
    (r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        # Static Resources
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.MEDIA_ROOT})
    )

